import * as types from './mutations-types'

export default {
  [types.SET_SEARCH_TITLE] (state, param) {
    // 变更状态
    state.showSearchTitle = param
  },
  [types.SET_TABS_STATE] (state, param) {
    state.showTabs = param
  },
  [types.SET_GOODS_DETAIL_ITEM] (state, param) {
    state.goodsDetailItem = param
  },
  [types.SET_SEARCH_VIEW_STATE] (state, param) {
    state.showSearchView = param
  },
  // [types.SET_SEARCH_RESULT_LIST] (state, param) {
  //   state.searchResultList = param
  // },
  [types.SET_SEARCH_STRING] (state, param) {
    state.searchString = param
  },
  [types.SET_SEARCH_HISTORY] (state, param) {
    state.searchHistory = param
  },
  [types.SET_FENLEI_DETAIL_URL] (state, param) {
    state.fenleiDetailUrl = param
  },
  [types.SET_VISITED_LIST] (state, param) {
    state.visitedList = param
  },
  [types.SET_EVALUATED_LIST] (state, param) {
    state.evaluatedList = param
  }
}
